;
;SAMPLE CONFIGURATION - 7330 S-COM CONTROLLER
;
;
;(c) 2013 - 2014 Tom A. Wheeler
;
;REVISION HISTORY:
;
;None. File originated 01-26-2014
;
;SUPPORTING INFORMATION:
;
;This is a generic configuration and is made for loading into a controller
;when a cold start has been initiated. Use the "Boot from Flash" option in
;SBOOT and choose "Restart controller, erase your programming" prior to 
;loading this file.
;
;This configuration has ONE transmitter and reciever on PORT 1 (Path RX1-TX1).
;It uses carrier access and can be switched to CTCSS access using the logic-level
;CTCSS input on the port connector. No CTCSS encoding is used.
;
;REQUIRED SUPPORT FILES:
;
;WORDS.TXT - - THE S-COM 7330 SPEECH VOCABULARY
;CW.TXT - - THE S-COM CW CHARACTER CODE SET
;



#direct

#include "words.txt"
#include "cw.txt"


;------------------------------------------------------------------------
;
; C O M M A N D   D E F I N I T I O N S
;
;------------------------------------------------------------------------
;
;This section defines what macro numbers will be applied for certain commands
;in your system. You can reorganize the command structure of your controller
;easily by changing this information.
;

#define CMD_TIME 0120		;User command to hear the date & time is "0120 *"
#define TX1_OFF 0100		;User command to turn TX1 OFF is "0100 *"
#define TX1_ON 0110		;User command to turn TX1 ON is "0110 *"



#define AP_CARRIER_ALONE 1
#define AP_CTCSS 3



;------------------------------------------------------------------------
;
; P A S S W O R D   M A N A G E M E N T
;
;------------------------------------------------------------------------
;
;The default control password (COPW) is 99 on a cold start. In the end, your
;controller's control password will be changed to DESIRED_COPW, so make sure to
;put the appropriate value there. DON'T JUST LEAVE IT AT 9999!!!!
;

#define COPW 99
#define DESIRED_COPW 9999


;------------------------------------------------------------------------
;
; C O N T R O L L E R   I N I T I A L I Z A T I O N
;
;------------------------------------------------------------------------
;
;This instruction erases all macros in the controller before programming.
;

COPW 22 00 *



;------------------------------------------------------------------------
;
; T I M E  &   D A T E
;
;------------------------------------------------------------------------
;
;
;This is the user macro for getting the time & date.
;

COPW 20 CMD_TIME COPW 15 RT_MIXED MSG_SPEECH SP_DELAY200 SP_DELAY200 RTV_TIME_NORMAL RTV_AMPM RTV_MONTH RTV_DAY *



;--------------------------------------------------------------------
;
;G E N E R A L   S E T T I N G S   &   F E A T U R E S
;
;--------------------------------------------------------------------

;
;RX1 - TX1 Access Path (Page 9-5) - Sets TAIL, COURTESY MESSAGE (TONE)
;

COPW 57 11 AP_CARRIER_ALONE  *		;Access by carrier alone. Change to AP_CTCSS for CTCSS access. (Page 9-5)
COPW 63 0161 1 *			;Enable timeout on path RX1 - TX1 (page 9-11)
COPW 09 2100 180 *			;Timeout (180 seconds / 3 minutes) (Page 9-13)
COPW 09 1100 50 *			;RX1 - TX1 penalty time value is 5 seconds (Page 9-15)

;
;Path RX1-TX1 timeout messages - "Repeater Timeout." The first message is emitted during the time out;
;the second message is sent when the timeout is cleared.
;

COPW 31 0103 RT_MIXED MSG_SPEECH SP_DELAY200 W_REPEATER W_TIME W_OUT * ;Message sent when timeout happens
COPW 31 0106 RT_MIXED MSG_SPEECH SP_DELAY200 W_REPEATER W_TIME W_OUT * ;Message sent when timeout is cleared

;
;Path RX1-TX1 courtesy message (Set to "beep" here by transmitting a CW letter 'E')
;

COPW 31 0100 RT_MIXED MSG_CW CW_E *

;
;TAIL Length
;

COPW 09 0100 60 *			;Courtesy delay 0.6 second (page 11-7)

;
;SET DEFAULT CW TONE FREQUENCY FOR CW MESSAGES - - IMPACTS COURTESY TONE ABOVE
;

COPW 06 10 0150 * 			;Set CW tone frequency (page 6-18; tone frequency table on A-30)




; -------------------------------------------
;
; I D E N T I F I C A T I O N   C O N T R O L
;
; -------------------------------------------


;SET ID INTERVAL

COPW 09 2106 600 *			;Set RX1-TX1 ID interval to 600 seconds (10 minutes) (page 12-3)

;Initial ID message (voice)

COPW 31 0109 RT_MIXED MSG_SPEECH SP_DELAY200 W_YOUR W_REPEATER LT_I LT_D W_IS W_HERE *

;Normal ID message (CW)

COPW 31 0110 RT_MIXED MSG_CW CW_Y CW_O CW_U CW_R CW_WORDSPACE CW_I CW_D CW_SLASH CW_R *



; -------------------------------------------
;
; T R A N S M I T T E R   C O N T R O L
;
; -------------------------------------------

;
;Turn off transmitter 1

COPW 20 TX1_OFF COPW 63 0112 0 * ;Transmitter 1 off (Page 11-25)

;Turn on transmitter 1

COPW 20 TX1_ON COPW 63 0112 1  * ;Transmitter 1 on (Page 11-25)



;--------------------------------------------------------------------
;
;                   S  C  H  E  D  U  L  E  R  
;
;--------------------------------------------------------------------
;
;Erase all events in the scheduler. Add events as you require them.
;Refer to the S-COM 7330 documentation for details.
;


COPW 28 01 99 *			;CLEAR ALL PREVIOUS SCHEDULER ENTRIES (IF ANY)



; -------------------------------------------
;
; P A S S W O R D    A D M I N I S T R A T I O N
;
; -------------------------------------------

;
; SET NEW CONTROL OPERATOR PASSWORD. DO NOT MOVE THIS INSTRUCTION - IT MUST
; BE THE LAST IN THE PROGRAM.
;

COPW 92 DESIRED_COPW 


; END SAMPLE CONFIGURATION

